package reading.common.exception;

import reading.common.enums.IBaseEnum;

/**
 * 400 Bad Request
 * Created by yangbajing(yangbajing@gmail.com) on 2016-09-
 *
 * @author txw
 * @date 2018/04/12
 */
public class HlBadRequestException extends AbstractHlBaseException {
    public HlBadRequestException(IBaseEnum iBaseEnum, String data) {
        this(iBaseEnum.getValue(), iBaseEnum.getName(), data);
    }

    public HlBadRequestException(String msg) {
        this(40001, msg, msg);
    }

    public HlBadRequestException(IBaseEnum iBaseEnum) {
        this(iBaseEnum.getValue(), iBaseEnum.getName(), iBaseEnum.getName());
    }

    public HlBadRequestException(int errCode, String errMsg) {
        this(errCode, errMsg, null);
    }

    public HlBadRequestException(int errCode, String errMsg, Object data) {
        super(errCode, errMsg, data);
    }
}
